package com.ll.beautymall.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/10/25.
 */
public class ObjectProduct implements Serializable {
    /**
     * taobao_num_iid : 2000002
     * taobao_title : 12支 口红持久保湿 不易脱色防水滋润唇彩唇膏
     * taobao_subtitle : 12支 口红持久保湿 不易脱色防水滋润唇彩唇膏咬唇妆小样正品套装
     * taobao_price : 88.00
     * taobao_promo_price : 0.00
     * taobao_selling_price : 0.00
     * money_symbol : ¥
     * integral : 0
     * taobao_url : http://www.yuike.com/vmall/3g/vc3g/page/pdetail.php?taobao_num_iid=2000002
     * mobile_cps_url : http://www.yuike.com/beautymall/web/product/detail.php?product_id=B2016071401
     * pc_cps_url : http://www.yuike.com/beautymall/web/product/detail.php?product_id=B2016071401
     * tag_type : 0
     * taobao_delist_time : 1530672229
     * taobao_pic_url : http://7xkpsl.com2.z0.glb.qiniucdn.com/data/img/product/1aeef1ce8e19dc8cfc3f312c4aac2baf/45837ad17c3fc1f4224d964c5784051e.jpg
     * taobao_item_imgs : []
     * taobao_volume : 2287
     * visits_count : 1431
     * comments_count : 0
     * likes_count : 15
     * shares_count : 0
     * last_lottery_id : 0
     * lottery_id : 0
     * product_id : B2016071401
     * is_delist : false
     * discount : 0折
     * quality_score : 5
     * price_score : 5
     * conform_score : 5
     * synthesis_score : 5
     * merchant : {"id":"457465"}
     * supplier : {"id":"0"}
     * brand : {"id":"234880","title":"0元购物专区","logo_url":"http://7xkpsl.com2.z0.glb.qiniucdn.com/data/img/brand/de475ec73a346a32eece6ae27f8af7de.jpg"}
     * from_title : 精选自美丽衣橱
     * from_logo_url : http://7xkpsl.com2.z0.glb.qiniucdn.com/data/img/brand/f_yuike.png
     * from_type : yuike
     */

    private String taobao_num_iid;
    private String taobao_title;
    private String taobao_subtitle;
    private String taobao_price;
    private String taobao_promo_price;
    private String taobao_selling_price;
    private String money_symbol;
    private int integral;
    private String taobao_url;
    private String mobile_cps_url;
    private String pc_cps_url;
    private String tag_type;
    private String taobao_delist_time;
    private String taobao_pic_url;
    private int taobao_volume;
    private int visits_count;
    private String comments_count;
    private int likes_count;
    private String shares_count;
    private String last_lottery_id;
    private String lottery_id;
    private String product_id;
    private boolean is_delist;
    private String discount;
    private int quality_score;
    private int price_score;
    private int conform_score;
    private int synthesis_score;
    /**
     * id : 457465
     */

    private MerchantBean merchant;
    /**
     * id : 0
     */

    private SupplierBean supplier;
    /**
     * id : 234880
     * title : 0元购物专区
     * logo_url : http://7xkpsl.com2.z0.glb.qiniucdn.com/data/img/brand/de475ec73a346a32eece6ae27f8af7de.jpg
     */

    private BrandBean brand;
    private String from_title;
    private String from_logo_url;
    private String from_type;
    private List<?> taobao_item_imgs;

    public static ObjectProduct objectFromData(String str) {

        return new Gson().fromJson(str, ObjectProduct.class);
    }

    public static List<ObjectProduct> arrayObjectProductFromData(String str) {

        Type listType = new TypeToken<ArrayList<ObjectProduct>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getTaobao_num_iid() {
        return taobao_num_iid;
    }

    public void setTaobao_num_iid(String taobao_num_iid) {
        this.taobao_num_iid = taobao_num_iid;
    }

    public String getTaobao_title() {
        return taobao_title;
    }

    public void setTaobao_title(String taobao_title) {
        this.taobao_title = taobao_title;
    }

    public String getTaobao_subtitle() {
        return taobao_subtitle;
    }

    public void setTaobao_subtitle(String taobao_subtitle) {
        this.taobao_subtitle = taobao_subtitle;
    }

    public String getTaobao_price() {
        return taobao_price;
    }

    public void setTaobao_price(String taobao_price) {
        this.taobao_price = taobao_price;
    }

    public String getTaobao_promo_price() {
        return taobao_promo_price;
    }

    public void setTaobao_promo_price(String taobao_promo_price) {
        this.taobao_promo_price = taobao_promo_price;
    }

    public String getTaobao_selling_price() {
        return taobao_selling_price;
    }

    public void setTaobao_selling_price(String taobao_selling_price) {
        this.taobao_selling_price = taobao_selling_price;
    }

    public String getMoney_symbol() {
        return money_symbol;
    }

    public void setMoney_symbol(String money_symbol) {
        this.money_symbol = money_symbol;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String getTaobao_url() {
        return taobao_url;
    }

    public void setTaobao_url(String taobao_url) {
        this.taobao_url = taobao_url;
    }

    public String getMobile_cps_url() {
        return mobile_cps_url;
    }

    public void setMobile_cps_url(String mobile_cps_url) {
        this.mobile_cps_url = mobile_cps_url;
    }

    public String getPc_cps_url() {
        return pc_cps_url;
    }

    public void setPc_cps_url(String pc_cps_url) {
        this.pc_cps_url = pc_cps_url;
    }

    public String getTag_type() {
        return tag_type;
    }

    public void setTag_type(String tag_type) {
        this.tag_type = tag_type;
    }

    public String getTaobao_delist_time() {
        return taobao_delist_time;
    }

    public void setTaobao_delist_time(String taobao_delist_time) {
        this.taobao_delist_time = taobao_delist_time;
    }

    public String getTaobao_pic_url() {
        return taobao_pic_url;
    }

    public void setTaobao_pic_url(String taobao_pic_url) {
        this.taobao_pic_url = taobao_pic_url;
    }

    public int getTaobao_volume() {
        return taobao_volume;
    }

    public void setTaobao_volume(int taobao_volume) {
        this.taobao_volume = taobao_volume;
    }

    public int getVisits_count() {
        return visits_count;
    }

    public void setVisits_count(int visits_count) {
        this.visits_count = visits_count;
    }

    public String getComments_count() {
        return comments_count;
    }

    public void setComments_count(String comments_count) {
        this.comments_count = comments_count;
    }

    public int getLikes_count() {
        return likes_count;
    }

    public void setLikes_count(int likes_count) {
        this.likes_count = likes_count;
    }

    public String getShares_count() {
        return shares_count;
    }

    public void setShares_count(String shares_count) {
        this.shares_count = shares_count;
    }

    public String getLast_lottery_id() {
        return last_lottery_id;
    }

    public void setLast_lottery_id(String last_lottery_id) {
        this.last_lottery_id = last_lottery_id;
    }

    public String getLottery_id() {
        return lottery_id;
    }

    public void setLottery_id(String lottery_id) {
        this.lottery_id = lottery_id;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public boolean isIs_delist() {
        return is_delist;
    }

    public void setIs_delist(boolean is_delist) {
        this.is_delist = is_delist;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public int getQuality_score() {
        return quality_score;
    }

    public void setQuality_score(int quality_score) {
        this.quality_score = quality_score;
    }

    public int getPrice_score() {
        return price_score;
    }

    public void setPrice_score(int price_score) {
        this.price_score = price_score;
    }

    public int getConform_score() {
        return conform_score;
    }

    public void setConform_score(int conform_score) {
        this.conform_score = conform_score;
    }

    public int getSynthesis_score() {
        return synthesis_score;
    }

    public void setSynthesis_score(int synthesis_score) {
        this.synthesis_score = synthesis_score;
    }

    public MerchantBean getMerchant() {
        return merchant;
    }

    public void setMerchant(MerchantBean merchant) {
        this.merchant = merchant;
    }

    public SupplierBean getSupplier() {
        return supplier;
    }

    public void setSupplier(SupplierBean supplier) {
        this.supplier = supplier;
    }

    public BrandBean getBrand() {
        return brand;
    }

    public void setBrand(BrandBean brand) {
        this.brand = brand;
    }

    public String getFrom_title() {
        return from_title;
    }

    public void setFrom_title(String from_title) {
        this.from_title = from_title;
    }

    public String getFrom_logo_url() {
        return from_logo_url;
    }

    public void setFrom_logo_url(String from_logo_url) {
        this.from_logo_url = from_logo_url;
    }

    public String getFrom_type() {
        return from_type;
    }

    public void setFrom_type(String from_type) {
        this.from_type = from_type;
    }

    public List<?> getTaobao_item_imgs() {
        return taobao_item_imgs;
    }

    public void setTaobao_item_imgs(List<?> taobao_item_imgs) {
        this.taobao_item_imgs = taobao_item_imgs;
    }

    public static class MerchantBean implements Serializable {
        private String id;

        public static MerchantBean objectFromData(String str) {

            return new Gson().fromJson(str, MerchantBean.class);
        }

        public static List<MerchantBean> arrayMerchantBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<MerchantBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }

    public static class SupplierBean implements Serializable {
        private String id;

        public static SupplierBean objectFromData(String str) {

            return new Gson().fromJson(str, SupplierBean.class);
        }

        public static List<SupplierBean> arraySupplierBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<SupplierBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }

    public static class BrandBean implements Serializable {
        private String id;
        private String title;
        private String logo_url;

        public static BrandBean objectFromData(String str) {

            return new Gson().fromJson(str, BrandBean.class);
        }

        public static List<BrandBean> arrayBrandBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<BrandBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getLogo_url() {
            return logo_url;
        }

        public void setLogo_url(String logo_url) {
            this.logo_url = logo_url;
        }
    }
}
